import request from './request'

export const req = {
    // 通用查询接口
    list: (url, params) => {
        return request({url, method: 'get', params})
    },
    addOrUpdate: (url, params) => {
        return request({url, method: 'post', params})
    }
}

export const API_SONG_FINDBYNAME = '/song/findByName'
export const API_COLLECT_FINDBYID = '/collect/findByName'
export const API_AUTH_FANSNUM = '/auth/follow/fansTotal'
export const API_AUTH_FOLLOWSNUM = '/auth/follow/followsTotal'
export const API_COLLECT_ADD = '/collect/add'
export const API_AUTH_PRIVATE_MESSAGE = '/auth/privateMessage/list'
export const API_USER_EDIT = '/user/edit'
export const API_USER_FINDBYID = '/user/findById'
